package bean.Case

import com.alibaba.fastjson.JSON

/**
 *
 * @program: bean.Case
 * @author: YCLW058
 * @create: 2021-05-27 14:02
 * @decsription:
 *
 * */

case class Messages(
                     catergoryLog: CatergoryLog,
                     count: Long,
                     timeStamp: Long
                   )

case class CatergoryLog(
                         //产品的类别ID
                           categoryID: Long,
                         //产品ID
                           produceID: Long,
                         //用户的ID
                          userID: Long,
                         //产品价格
                           price: Double,
                         //国家
                          country: String,
                         //网络方式
                          network: String,
                         //来源方式
                          source: String,
                         //购买类型
                          buyType: String,
                         //购买时间
                          buyTime: Long,
                         //发货时间
                          leaveTime: Long
                       )
object CatergoryLog{
  def apply(json:String):CatergoryLog={
    JSON.parseObject(json, classOf[CatergoryLog])
  }
}